package tchk.xyz.lingyuntutorminiprogram.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import tchk.xyz.lingyuntutorminiprogram.dto.DashboardStatsDTO;
import tchk.xyz.lingyuntutorminiprogram.dto.OrderAdminDTO;
import tchk.xyz.lingyuntutorminiprogram.entity.Orders;

public interface IOrdersService extends IService<Orders> {
    DashboardStatsDTO getDashboardStats();

    IPage<OrderAdminDTO> getOrderListForAdmin(IPage<OrderAdminDTO> page, String orderNo);

    void cancelOrderByAdmin(Long orderId, String reason);

}